package com.whq.thrift.api.web.admin.service.consumelog;

import java.util.List;
import java.util.Map;

import com.whq.thrift.api.web.admin.db.consumelog.ConsumeLog;

public interface ConsumeLogService {

	public void addRecord(ConsumeLog consumeLog);

	public List<ConsumeLog> findRecordsByMap(Map<String, Object> whereParams, int beginIndex, int maxCount);

	public int findRecordCount(Map<String, Object> whereParams);

	public ConsumeLog findRecordById(String id, String time);

	public List<ConsumeLog> statByApiCode(Map<String, Object> whereParams);

	public List<ConsumeLog> statByCode(Map<String, Object> whereParams);

	public List<ConsumeLog> queryIceCostTimeCountData(Map<String, Object> whereParams);

	public void replaceStatDateApiData(int tableSeq, String statDay, String startTime, String endTime);
	
	public void replaceStatHourApiData(int tableSeq, String statDay, String startTime, String endTime, int statHour);
	
	public void delDataApiData(String thresholdTime);
	
	public void delHourApiData(String thresholdTime);
}
